<div>
    <div class="row">
        <div class="col-lg-12">
            <div class="ibox">
                <div class="ibox-title">
                    <h5>
                        <span><vc:i18n name="单号：" namespace="allocationStorehouseEnter"></vc:i18n></span>{{allocationStorehouseEnterInfo.applyId}}
                    </h5>
                </div>
                <div class="ibox-content">
                    <table class="footable table table-stripped toggle-arrow-tiny" data-page-size="15">
                        <thead>
                        <tr>
                            <th class="text-center">
                                <input id="check1" type="checkbox" class="i-checks" @click="checkAll($event)">
                            </th>
                            <th class="text-center">
                                <vc:i18n name="物品类型" namespace="allocationStorehouseEnter"></vc:i18n>
                            </th>
                            <th class="text-center">
                                <vc:i18n name="物品名称" namespace="allocationStorehouseEnter"></vc:i18n>
                            </th>
                            <th class="text-center">
                                <vc:i18n name="物品规格" namespace="allocationStorehouseEnter"></vc:i18n>
                            </th>
                            <th class="text-center">
                                <vc:i18n name="物品编码" namespace="allocationStorehouseEnter"></vc:i18n>
                            </th>
                            <th class="text-center">
                                <vc:i18n name="固定物品" namespace="allocationStorehouseEnter"></vc:i18n>
                            </th>
                            <th class="text-center">{{allocationStorehouseEnterInfo.applyType == '10000' ||
                                allocationStorehouseEnterInfo.applyType == '30000' ? '被调仓库' : '退还人'}}
                            </th>
                            <th class="text-center">
                                <vc:i18n name="原仓库" namespace="allocationStorehouseEnter"></vc:i18n>
                            </th>
                            <th class="text-center">
                                <vc:i18n name="目标仓库" namespace="allocationStorehouseEnter"></vc:i18n>
                            </th>
                            <th class="text-center">
                                <span><vc:i18n name="原库存" namespace="allocationStorehouseEnter"></vc:i18n></span>
                                ({{allocationStorehouseEnterInfo.applyType == '30000' ? '目标仓库' : '被调仓库'}})
                            </th>
                            <th class="text-center">
                                <vc:i18n name="调拨数量" namespace="allocationStorehouseEnter"></vc:i18n>
                            </th>
                            <th class="text-center">
                                <vc:i18n name="实际数量" namespace="allocationStorehouseEnter"></vc:i18n>
                            </th>
                        </tr>
                        </thead>
                        <tbody>
                        <tr v-for="resourceStore in allocationStorehouseEnterInfo.resourceStores">
                            <td class="text-center">
                                <input type="checkbox" class="i-checks checkItem" v-bind:value="resourceStore.resId"
                                       v-model="allocationStorehouseEnterInfo.selectResIds" @click="isCheckAll($event)">
                            </td>
                            <td class="text-center">{{resourceStore.parentRstName}} > {{resourceStore.rstName}}</td>
                            <td class="text-center">{{resourceStore.resName}}</td>
                            <td class="text-center">{{resourceStore.specName ? resourceStore.specName : '-'}}</td>
                            <td class="text-center">{{resourceStore.resCode}}</td>
                            <td class="text-center">{{resourceStore.isFixedName}}</td>
                            <td class="text-center">{{allocationStorehouseEnterInfo.applyType == '10000' ||
                                allocationStorehouseEnterInfo.applyType == '30000' ? resourceStore.shaName :
                                allocationStorehouseEnterInfo.startUserName}}
                            </td>
                            <td class="text-center">{{resourceStore.shaName}}</td>
                            <td class="text-center">{{resourceStore.shzName}}</td>
                            <td class="text-center">{{resourceStore.originalStock}}{{resourceStore.unitCodeName}}</td>
                            <td class="text-center">{{resourceStore.stock}}{{resourceStore.applyType==20000 ?
                                resourceStore.miniUnitCodeName : resourceStore.unitCodeName}}
                            </td>
                            <td class="text-center">
                                <div style="width:150px;margin: 0 auto;">
                                    <input v-model.trim="resourceStore.quantity" type="number"
                                           :placeholder="vc.i18n('必填，请填写调拨数量','allocationStorehouseEnter')"
                                           class="form-control">
                                </div>
                            </td>
                        </tr>
                        </tbody>
                        <tfoot>
                        <tr>
                            <td colspan="12">
                                <ul class="pagination float-right"></ul>
                            </td>
                        </tr>
                        </tfoot>
                    </table>
                </div>
            </div>
        </div>
    </div>
    <div class="row">
        <div class="col-md-10"></div>
        <div class="col-md-2 " style="margin-bottom:10px; text-align:right">
            <button type="button" class="btn btn-primary" style="margin-left:10px;" v-on:click="_submit()">
                <i class="fa fa-check"></i>
                <vc:i18n name="提交" namespace="allocationStorehouseEnter"></vc:i18n>
            </button>
        </div>
    </div>
</div>